CONTRACT_TYPE
{
//REQUIREMENTS FOR CONTRACT TO APPEAR


//DATA NODES TO PROCESS FOR CONTRACT USE


//CONTRACT DESCRIPTION
	name = BugTest416
	title = BugTest #416

	description = Description of bug.
	synopsis = Test the bug.
	completedMessage = You have tested the bug.
	
	maxSimultaneous = 1
	
	advanceFunds = 0
	rewardScience = 0
	rewardReputation = 0


//BEHAVIORS TO DO WHEN CREATING CONTRACT

	BEHAVIOUR
	{
		name = SpawnPassengers
		type = SpawnPassengers
		
		count = 1
		
	}
	
	BEHAVIOUR
	{
        name = WaypointGenerator
        type = WaypointGenerator

		PQS_CITY
		{
			name = Administration Building
			icon = marker
			
			pqsCity = KSC
			pqsOffset = -635.450871107884, 44.6770752507737, 25.391827671981
			altitude = 5
			
		}
		
		PQS_CITY
		{
			name = R&D Conference Center 
			icon = marker
			
			pqsCity = KSC
			pqsOffset = -391.96278745921, -140.829308116962, 25.1025682588561
			altitude = 5
			
		}
	
	}


//PARAMETERS FOR CONTRACT COMPLETION

	PARAMETER
	{
		name = VesselParameterGroup
		type = VesselParameterGroup
		title = Your aircraft must

// A VPG with define and a custom title will hide the vessel name from the contract window as expected:	
		define = craft
		
		PARAMETER
		{
			name = HasCrew
			type = HasCrew
			title = have a driver
			
			minCrew = 1
			
			disableOnStateChange = false
			hideChildren = true
			
		}
		
		PARAMETER
		{
			name = PartValidation
			type = PartValidation
			title = have a Z-100 Battery Pack
			
			part = batteryPack
			
			disableOnStateChange = false
			hideChildren = true
			
		}
	
	}
	
	PARAMETER
	{
		name = VesselParameterGroup
		type = VesselParameterGroup
		title = and load your passenger

		vessel = craft
		hideVesselName = true
		
		PARAMETER
		{
			name = HasPassengers
			type = HasPassengers
			
		}
	
	}
	
	PARAMETER
	{
		name = VesselParameterGroup
		type = VesselParameterGroup
		title = and get moving

		vessel = craft
		
		PARAMETER
		{
			name = ReachState
			type = ReachState
			title = get moving
			situation = LANDED
			minSpeed = 5.0
			targetBody = Kerbin
			
		}
	
	}
	
	PARAMETER
	{
		name = VesselParameterGroup
		type = VesselParameterGroup
		title = with a Z-100 Battery Pack 
		
		vessel = craft
		
		PARAMETER
		{
			name = PartValidation
			type = PartValidation
			
			part = batteryPack
			
			disableOnStateChange = false
			hideChildren = true
			
		}
	
	}
	
	PARAMETER
	{
		name = VisitWaypointAdminBuilding
		type = VesselParameterGroup
		title = visiting all waypoints
		
		vessel = craft
		
		PARAMETER
		{
			name = VisitWaypoint
			type = VisitWaypoint
			index = 0
			title = Admin Building
			
			distance = 10
			hideOnCompletion = true
			
		}
		
		PARAMETER
		{
			name = VisitWaypoint
			type = VisitWaypoint
			index = 1
			title = R&D Conference Center
			
			distance = 10
			hideOnCompletion = true
			
		}
		
		completeInSequence = true
		disableOnStateChange = true
	
	}
	
}
